Goto

Collaborating Authors

 logic programming


AI Alignment as a Systems Problem: Toward Distributed Proof Checking at Runtime

arXiv.org Artificial Intelligence

AI alignment concerns the behavior of composed systems, including what they must be able to do and what they are permitted to do. We revisit IC*, an invariant-centered model of computation developed with agreement-controlled nested logical times. We define a compositional object-and-clock framework with state invariants, transition relations, votes, and autonomous inner moves. Parent clocks admit joint advances when child agreements and connecting predicates hold; child clocks may advance separately under parent permission. Our main theorem derives global refinement from local obligations: faithful, refining components and sound connecting clocks yield a hierarchy refining its root specification. We provide a traditional proof and Lean 4-checked results. A corresponding proposal-and-commit protocol is sound and, under finite branching, complete for enabled ticks. Additional finite-trace witness obligations characterize preservation of required capabilities. We formalize selected L.0 cause-and-effect rules at their governing clocks and apply the framework to supervised AI teams. We propose distributed proof checking through Lean instances coordinated by verified logical-clock protocols. A further Lean-checked theorem establishes preservation under authorized creation in an evolving namespace. Retaining commitments, epochs, and supporting evidence could yield a verifiable history. Real-world guarantees additionally require proving correspondence between the implementation, external effects, and the formal model.


FOLBench: A Logic-Grounded Evaluation Suite for Evaluating Open-Ended Responses using Graph-Based Semantic Metrics on First-Order Logic form of Natural Language

arXiv.org Artificial Intelligence

Evaluating open-ended responses from humans or large language models (LLMs) remains a fundamental challenge. Existing metrics ranging from BLEU and ROUGE to embedding-based similarity and LLM-as-a-judge struggle to capture logical fidelity, structural consistency, and semantic entailment. The outcome of this paper entails FOLBench, a logic-grounded evaluation suite that consists of graph-based metrics built from parsing the First-Order Logic (FOL) translated from Natural Language (NL). The suite of symmetric metrics and its composition compares the First-Order Logic forms of candidate Natural Language and gold references. FOLBench provides interpretable, deterministic, verifiable, and compositional evaluation signals. A parameter efficient fine-tuned small language model is also shared to facilitate translations from Natural Language (NL) to First-Order Logic (FOL). In addition, this fine-tuned language model is quantized using AWQ quantization method, thereby minimizes the high VRAM requirement to generate First-Order Logic. Experiments show that FOLBench exposes reasoning failures invisible to existing metrics and correlates strongly with expert human judgments. The evaluation suite is available as pip package, and the source code is open to further contribution and reproducibility at GitHub (https://github.com/gosuddin/folbench). The fine-tuned models are hosted at HuggingFace space (https://huggingface.co/gosuddin).


Optimal Learning of Logical Semantics from Data

arXiv.org Artificial Intelligence

A learner that induces logic programs from a template $L$ of $N$ candidate Horn clauses is handed the $2^N$ clause-sets $S\subseteq L$, but most of them deduce the same facts. What it can actually learn is the set $Ω_L$ of realizable deductive closures, the distinct meanings (semantic contents) the template can express. Learning theory takes the hypothesis class as given; here it is not. $Ω_L$ exists only implicitly, as the image of a least-fixpoint map, and its size, its VC and Littlestone dimensions, and even a way to run the optimal learners over it become available only once it is constructed. We construct it for two recursive families. For the bandwidth-$d$ reachability template on $n$ atoms the semantic capacity $C(L)=\log_2|Ω_L|$ is $n\log_2ρ_d$ bits, with $ρ_d$ the $d$-bonacci constant, against about $dn$ syntactic bits; for nonlinear transitive closure on $m$ constants it is $\tfrac14 m^2(1+o(1))$ bits. Standard finite-class results applied to $Ω_L$ then become closed-form rates: Halving makes at most $C(L)$ mistakes, the minimax log-loss (Shtarkov) regret equals $C(L)$ once the queries separate the contents, and the agnostic $0/1$ regret is $Θ(\sqrt{C(L)\,T})$ for both families, whose Littlestone dimension is of order $C(L)$. Under random base facts, the size of a content and its semantic compression (how much of a random program its meaning makes redundant) share a sharp threshold at one base fact per constant: below it the meaning determines the program up to $O(\log m)$ bits, above it a constant fraction of the program is redundant. On real data (Padgett's Florentine families and WordNet) the $2^{40}$ clause-sets of the Florentine template collapse onto $4{,}104$ contents. Under label noise, version-space pruning loses the target in every run, while exponential weights over $Ω_L$ stays within its regret bound.


Mars Sample Recovery Helicopter Aerial Mode Commander Design Using Executable Models

arXiv.org Artificial Intelligence

This paper explores a case study of the use of behavioral modeling in a mode commander for aerial flight of a Sample Recovery Helicopter (SRH) mission concept that was designed to retrieve and deliver sample tubes to the Sample Retrieval Lander (SRL) as a part of the planned Mars Sample Return (MSR) mission. In particular, we describe the application of model-based systems engineering with executable system modeling for describing the behavior of the Aerial Mode Commander of the helicopter. Descriptive and behavioral models are used in this context to: 1) provide consistency and tighter integration between flight system description and flight software implementation, 2) enable early detection of any unexpected/undesired behavior by tracking the system states for different mission scenarios, 3) qualify the comprehensiveness of the behavioral descriptions via simulations. The execution of the system model enabled the dynamic evaluation of the system behavior, qualification of mode commander design, and validation of scenarios and test cases. Formal methods are leveraged to represent the system and validate its behavior by visualizing and simulating different mission scenarios and test cases. Interactions between aerial mode commanders are explicitly defined using SysML, which provides rigor and flexibility to adequately capture the level of detail needed to reduce ambiguities in design, ultimately leading to a more consistent and reliable system. Model patterns are constructed to address specific flight computer interactions and fault behaviors. Early validation of system behavior offered resources for a streamlined transition from design to implementation, leading to more robust and efficient flight software that performs as expected across various mission scenarios.


AutoformBench: A Lean Formalization Benchmark for Advanced Mathematics

arXiv.org Artificial Intelligence

AI systems are increasingly capable of producing machine-checked Lean proofs of advanced mathematical results. Real mathematical formalization, however, is not isolated theorem proving: it requires building the definitions and intermediate lemmas that connect a result to a formal library. Existing evaluations often provide isolated theorem statements in settings where much of this supporting theory is already available in Mathlib. We introduce AutoformBench, a benchmark of 341 Lean 4 formalization tasks drawn from 24 advanced mathematical sources. Lean-experienced mathematicians formalized and audited each target statement, leaving the corresponding Lean proof to the evaluated agent. Each problem is embedded in a broader mathematical development: agents receive the informal proof but must translate it into Lean while constructing the missing definitions, intermediate lemmas, and supporting infrastructure. We compare the performance of frontier models on these problems. We find a largely shared difficulty frontier: success depends less on mathematical domain than on models' ability to construct missing formal infrastructure. Data and code at https://github.com/facebookresearch/autoformbench


SWE-Proof: Can Language Models Resolve Real-World Issues with Machine-Checked Proofs?

arXiv.org Artificial Intelligence

Ensuring the correctness of LLM-generated code is a core challenge for modern software engineering. Benchmarks for agentic code generation check correctness with held-out test suites, which are inherently incomplete and increasingly susceptible to memorization. Formal verification avoids both problems, but existing work covers only standalone tasks whose specifications are given as input, not real issues, which touch large repositories and state intent in vague natural language. We present BenchProofer, a pipeline that turns a coding task with a known correct patch into a formally verified one: it writes a specification for the new code, summarizes the existing functions that code calls with axioms, and admits an instance only after mechanical and adversarial gates agree. Applying it to SWE-bench Verified yields SWE-Proof, 500 real issues whose correctness is formally verified rather than tested, and it extends to SWE-bench Pro. Evaluating Claude Opus 4.8, we find that verification catches what tests miss: nearly a third of test-passing patches admit counterexamples, which a structured natural-language specification does not fix, while a correct formal one lifts resolution from 85% to 95%. Writing that specification is the hard part: an agent that must write its own gains nothing over an unaided baseline, and only 56% of those specifications pass our audit. The usual failure is faithfulness, where a specification constrains part of the required behavior and leaves the rest free. Specification quality also tracks the outcome, failing on 92% of unresolved instances against 51% of resolved ones, making faithful specification synthesis a concrete open problem. Code is available at https://github.com/amazon-science/BenchProofer.


Temporal Logic Tensor Networks: Foundations of Temporal Reasoning in Neural Networks

arXiv.org Artificial Intelligence

In dynamic scenes---football matches, traffic streams, surgery, or assembly---actions unfold at fundamentally different time scales: in football, a kick happens in milliseconds, a possession lasts seconds, and complex events such as a successful pass followed by a goal combine multiple atomic actions over extended durations. Models trained solely on visual data struggle to learn effectively across different time scales, lacking a principled way of reasoning across fine-grained instants and broader intervals. Neither point-wise nor purely interval semantics suffices: the former fragments events into frame-level snapshots lacking overall event identification; the latter treats intervals as atomic truth-values, ignoring state trajectories. We introduce Temporal Logic Tensor Networks (tLTN), a differentiable neuro-symbolic framework addressing this duality via a formal, multi-sorted logic where events and states are structurally interdependent. Extending Interval Logic Tensor Networks (ILTN), tLTN grounds state predicates as fuzzy truth-value paths over time points, while events are first-class entities with learnable trapezoidal fuzzy durations and differentiable Allen-style relations. A compositional semantics fuses static, event-structural, and state-dynamic satisfaction into a single differentiable LTN grounding. Crucially, the modalities constrain each other bidirectionally: the interval layer dictates where point-wise constraints (e.g., Until, Since) are evaluated, restricting them to event-defined spans; conversely, the point-wise layer validates interval relations, rejecting them if underlying state dynamics contradict the relation. Through controlled synthetic examples, we show when single-modality learning fails and how this localization reduces frame-level computational cost on long traces.


Towards an Inferentialist Account of Information Through Proof-theoretic Semantics

arXiv.org Artificial Intelligence

Information is one of the most widely-discussed concepts of the current era. However, a great deal of insightful work notwithstanding, it is yet to be given wholly convincing logical or mathematical foundations. Without them, we lack adequate reasoning tools for understanding the complex ecosystems of systems upon which the society depends. We seek to rectify this by taking a first step towards developing an inferentialist semantic theory of information. There are three key interacting components. First, conceptual analysis: the metaphysics of information. Dretske expressed the key concepts of information in terms of intentionality, truth, and transmissibility. We replace truth with inferability, and trace the consequences of this replacement. Second, logic: proof-theoretic semantics (P-tS) provides a mathematical-logical realization of inferentialist reasoning. Using P-tS, we develop the first steps towards a mathematical-logical theory of an inferentialist primitive unit of information, the 'inferon'. This proof-theoretic approach counterpoints the model-theoretic view of information articulated in situation theory. Furthermore, we argue that it facilitates addressing all three components of van Benthem and Martinez's categorization of the understandings of information, as range, as correlation, and as code. Our focus is on information-as-correlation. Third, systems: the P-tS tools we develop provide the basis for a mathematical account of distributed systems modelling -- a key tool from informatics for understanding the organization of information processing systems. This yields a reasoning-based theory of information flow in models of distributed systems. Overall, we seek to give a conceptually rigorous mathematical-logical account of information and its role within informatics, grounded in inference and reasoning.


Random coloured digraphs defined by a Markov logic network

arXiv.org Artificial Intelligence

A Markov Logic Network (MLN) $M$ is a probabilistic relational model used in Statistical Relational Artificial Intelligence for defining a probability distribution $P_D^M$ on the set $W_D$ of possible worlds with domain $D$ for an arbitrary finite domain $D$. An MLN consists of first-order formulas, which we call soft constraints, with associated weights which are nonnegative real numbers. The behaviour of the probability distribution, including the effect of the weights, on different domain sizes is poorly understood. We approach the problem in a systematic way by studying sequences $(P_n^M(ψ) : n = 1, 2, 3, \ldots)$ where $ψ$ is a first-order sentence and $P_n^M(ψ)$ is the probability that $ψ$ holds in $W_D$ where $D = [n] := \{1, \ldots, n\}$. We consider a first-order language that can express a property $P(x)$ and relation $R(x, y)$ and show that all of the following cases can be realized for an MLN $M$ such that each of its soft constraints is a boolean combination of $P(x)$, $P(y)$ and $R(x, y)$ in which both $x$ and $y$ appears: For every first-order sentence $ψ$, $P_n^M(ψ)$ converges to 0 or 1 as $n\to\infty$. For every first-order sentence $ψ$, $P_n^M(ψ)$ converges as $n\to\infty$ but not necessarily to 0 or 1. There is a first-order sentence $ψ$ such that $P_n^M(ψ)$ does not converge as $n\to\infty$. In fact, all three cases can be realized even after fixing the soft constraints and, for any $\varepsilon > 0$, by varying their weights by less than $\varepsilon$. We also show that, given any MLN as described above, we can efficiently determine which case it belongs to by inspecting the MLN. Then we show that if the weights are scaled by $1/n$ then we end up in case~(1) no matter how the weights are chosen.


Attention at Absolute Zero

arXiv.org Artificial Intelligence

Attention scores candidate supports of an answer, which we call witnesses, and reads the scores at a temperature. We build a higher-order attention layer whose state lives on pairs of items: for a pair (a, b), each third item k is a witness judged through its legs (a, k) and (k, b). It reads witnesses at zero temperature, keeping the best and the number tied with it, passes on only bits comparing such counts, rebuilds its pair state from the input and these bits at every loop, and is trained from answers alone. Each choice removes one way soft attention fails at size: dispersed weight, unresolved gaps between learned scores, and a drifting soft state. In maximum retrieval it is right on at least 99.95% of sets 1,000 times larger than in training, on all ten seeds; trained with a soft count, the same network falls to 42% at 4,096 items. On CLRS-30 without hints, a general form of the layer (half its channels read at zero temperature, numbers embedded, state carried) beats the best published model, which uses hints on some tasks; the full cold layer is exact on every test input of 9 of the 12 tasks whose answers depend on numbers only through comparisons. From yes-or-no answers it decides 2-SAT and two-colouring exactly at 500 variables and, as our theory predicts, not parity equations. Beside a frozen 7B language model it chains family relations exactly at 1,000 statements after training on 16, where the model alone falls to 44%; finite checks on the weights prove every block that learned correct at every size, on acyclic contexts and given what the model reads. On CLUTRR it is right on every story of five to ten relations given the graphs, learning the 62 rules exactly; from text, with the model frozen, no hand-written rule and only a small read-in trained, it lifts an open 7B model from 33% to 65%, above every system we found without hand-written rules except frontier reasoning models.